package org.jeecg.modules.workorder.service;

import java.util.List;

import org.jeecg.modules.workorder.entity.WorkingOrderRecord;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 生产工单记录
 * @Date:   2021-09-09
 * @Version: V1.0
 */
public interface IWorkingOrderRecordService extends IService<WorkingOrderRecord> {

	/**根节点父ID的值*/
	public static final String ROOT_PID_VALUE = "0";
	
	/**树节点有子节点状态值*/
	public static final String HASCHILD = "1";
	
	/**树节点无子节点状态值*/
	public static final String NOCHILD = "0";

	/**新增节点*/
	boolean addWorkingOrderRecord(WorkingOrderRecord workingOrderRecord);
	
	/**查询分页*/
	IPage<WorkingOrderRecord> page(Page<WorkingOrderRecord> page, QueryWrapper<WorkingOrderRecord> queryWrapper);
	
	/**查询无分页*/
    List<WorkingOrderRecord> queryTreeListNoPage(QueryWrapper<WorkingOrderRecord> queryWrapper);

}
